﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="SaleContractForm.aspx.cs" Inherits="App_Input_SaleContractForm"　Title="合同登记"%>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="PanelNavigate" runat="server" />
<script type="text/jscript">
function countRent(object){
		
		var rentCount = document.getElementById('<%=rentCount.ClientID%>');
		var monthCoun = document.getElementById('<%=monthCount.ClientID%>');
		var foregiftH = document.getElementById('<%=foregiftH.ClientID%>');
		var rentH = document.getElementById('<%=rentH.ClientID%>');
		
		
		if( object.value.indexOf(".") < 0 && !isNaN(object.value) &&  object.value.indexOf("-") < 0 ){
			rentCount.innerHTML = (object.value*rentH.value).toFixed(2);
		
			monthCoun.innerHTML = (object.value*rentH.value+foregiftH.value*1).toFixed(2);
		}

		
		
	

	}
</script>

    <div>
        <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4" ForeColor="Red" Visible="False">
            <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="rentMultiple">
                <cc1:ComAbsParamsAttribute Parameter="月份数" />
            </cc1:CheckRequiredAttribute>
            <cc1:CheckLongAttribute Code="E0317" ControlToValidator="rentMultiple">
                <cc1:ComAbsParamsAttribute Parameter="月份数" />
            </cc1:CheckLongAttribute>
            <cc1:CheckLongMoreAttribute Code="E0078" ControlToValidator="rentMultiple" More="3">
                <cc1:ComAbsParamsAttribute Parameter="月份数" />
                <cc1:ComAbsParamsAttribute Parameter="3" />
            </cc1:CheckLongMoreAttribute>
        </cc1:ComValidator>
        <cc1:ComValidator ID="ComValidator2" runat="server" Visible="False">
        </cc1:ComValidator>
        
        <table   width="80%">
            <tr>
                <td style="width:100%" >
                    <table class="table_border_line">
                        <tr>
                            <th align="left" colspan="6"  style="text-align: left">
                            <script language="javascript">
                                        (new TitleBar('SearchBar', '入住人信息')).showBar();
                            </script>
                                </th>
                        </tr>
                    </table>
                    <table class="table_border_line" style="width: 101%;background:ffffff" >
                        
                        <tr>
                            <td style="width: 15px; height: 26px;">
                                &nbsp;</td>
                            <td style="width: 72px; white-space: nowrap; height: 26px;" class="">
                                姓名</td>
                            <td class="" style="height: 26px; width: 207px;">
                                <asp:Label ID="nameC" runat="server"></asp:Label></td>
                            <td align="left" style="height: 26px; width: 5px;">
                            </td>
                            <td align="left" style="height: 26px; width: 8px;">
                            </td>
                            <td align="right" style="height: 26px; width: 15px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 15px; height: 25px;">
                                &nbsp;</td>
                            <td style="width: 72px; white-space: nowrap; height: 25px;" class="">
                                性别</td>
                            <td class="" style="height: 25px; width: 207px;">
                                <asp:Label ID="mSex" runat="server"></asp:Label></td>
                            <td align="left" style="height: 25px; width: 5px;">
                            </td>
                            <td align="left" style="height: 25px; width: 8px;">
                            </td>
                            <td align="right" style="height: 25px; width: 15px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 15px; height: 23px;">
                                &nbsp;</td>
                            <td style="width: 72px; white-space: nowrap; height: 23px;" class="" id="LabCardType" runat="server">
                                身份证号</td>
                            <td class="" style="height: 23px; width: 207px;">
                                <asp:Label ID="card" runat="server"></asp:Label></td>
                            <td align="left" style="height: 23px; width: 5px;">
                            </td>
                            <td align="left" style="height: 23px; width: 8px;">
                            </td>
                            <td align="right" style="height: 23px; width: 15px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 15px; height: 19px;">
                                &nbsp;</td>
                            <td style="width: 72px; white-space: nowrap; height: 19px;" class="">
                                会员类型</td>
                            <td class="" style="height: 19px; width: 207px;">
                              <asp:Label id="cardType" runat="server"></asp:Label></td>
                            <td align="left" style="height: 19px; width: 5px;">
                            </td>
                            <td align="left" style="height: 19px; width: 8px;">
                            </td>
                            <td align="right" style="height: 19px; width: 15px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 15px; height: 18px;">
                                &nbsp;</td>
                            <td style="width: 72px; white-space: nowrap; height: 18px;" class="">
                                房间</td>
                            <td class="" style="height: 18px; width: 207px;">
                                <asp:Label id="feeType" runat="server"></asp:Label></td>
                            <td align="left" style="height: 18px; width: 5px;">
                            </td>
                            <td align="left" style="height: 18px; width: 8px;">
                            </td>
                            <td align="right" style="height: 18px; width: 15px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 15px; height: 24px;">
                                &nbsp;</td>
                            <td style="width: 72px; white-space: nowrap; height: 24px;" class="">
                                属性</td>
                            <td class="" style="width: 207px; height: 24px">
                                 <asp:Label id="property" runat="server"></asp:Label></td>
                            <td align="left" style="width: 5px; height: 24px">
                            </td>
                            <td align="left" style="width: 8px; height: 24px">
                            </td>
                            <td align="right" style="width: 15px; height: 24px">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <br />
        <table  id="year" runat="server" width="80%" >
            <tr>
                <td >
                    <table class="table_border_line" >
                        <tr>
                            <th colspan="6" style="text-align: left">
                                <script language="javascript">
                                        (new TitleBar('SearchBar1', '费用项目')).showBar();
                            </script>
                                
                            </th>
                        </tr>
                    </table>
                    <table class="table_border_line" style="background:ffffff">
                        <tr>
                            <td style="width: 45px; height: 26px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 26px;" class="">
                                会员费</td>
                            <td class="" style="height: 26px">
                                <asp:Label ID="memberExpense" runat="server"></asp:Label></td>
                            <td align="left" style="height: 26px">
                            </td>
                            <td align="left" style="height: 26px; width: 9px;">
                            </td>
                            <td align="right" style="height: 26px; width: 17px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 45px">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" class="">
                                年费</td>
                            <td class="">
                                <asp:Label ID="yearExpense" runat="server"></asp:Label></td>
                            <td align="left">
                            </td>
                            <td align="left" style="width: 9px">
                            </td>
                            <td align="right" style="width: 17px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 45px; height: 26px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 26px;" class="">
                                合计</td>
                            <td class="" style="height: 26px">
                                <asp:Label ID="yearCount" runat="server"></asp:Label></td>
                            <td align="left" style="height: 26px">
                            </td>
                            <td align="left" style="width: 9px; height: 26px">
                            </td>
                            <td align="right" style="width: 17px; height: 26px">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

        <table id="month" runat="server" width="80%" >
            <tr>
                <td >
                    <table class="table_border_line">
                        <tr>
                            <th colspan="6"  style="text-align: left">
                                <script language="javascript">
                                        (new TitleBar('SearchBar2', '费用项目')).showBar();
                            </script>
                                
                            </th>
                        </tr>
                    </table>
                    <table class="table_border_line" style="background:ffffff">
                        <tr>
                            <td style="width: 20px; height: 25px;">
                                &nbsp;</td>
                            <td style="width: 45px; white-space: nowrap; height: 25px;" class="">
                                租金</td>
                            <td class="" style="height: 25px; width: 78px;">
                                <asp:Label ID="rent" runat="server"></asp:Label>/月</td>
                            <td class="" style="height: 25px; width: 105px;">
                            <asp:Label ID="rentMultiple" runat="server"></asp:Label>
                          &nbsp; 月</td>
                            <td class="" style="height: 25px; width: 178px;">
                                总金额:&nbsp;&nbsp;<asp:Label ID="rentCount" runat="server"></asp:Label></td>
                            <td align="right" style="height: 25px; width: 16px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 20px; height: 16px;">
                                &nbsp;</td>
                            <td style="width: 45px; white-space: nowrap; height: 16px;"class="">
                                押金</td>
                            <td class="" style="width: 78px; height: 16px">
                                <asp:Label ID="foregift" runat="server"></asp:Label></td>
                            <td align="left" style="width: 105px; height: 16px">
                                &nbsp;</td>
                            <td align="left" style="width: 178px; height: 16px;">
                                </td>
                            <td align="right" style="width: 16px; height: 16px;">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 20px; height: 26px;">
                                &nbsp;</td>
                            <td style="width: 45px; white-space: nowrap; height: 26px;" class="">
                                合计</td>
                            <td class="" style="height: 26px; width: 78px;">
                               <asp:Label ID="monthCount" runat="server"></asp:Label></td>
                            <td align="left" style="height: 26px; width: 105px;">
                            </td>
                            <td align="left" style="width: 178px; height: 26px">
                            </td>
                            <td align="right" style="width: 16px; height: 26px">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <table width="80%" >
            <tr>
                <td >
                    <table class="table_border_line">
                        <tr>
                            <th colspan="6"  style="text-align: left">
                                <script language="javascript">
                                        (new TitleBar('SearchBar3', '客户信息')).showBar();
                            </script>
                                
                            </th>
                        </tr>
                    </table>
                    <table class="table_border_line" style="height: 163px;background:ffffff" >
                        <tr>
                            <td style="width: 44px; height: 23px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 23px;" class="">
                                姓名</td>
                            <td class="" style="height: 23px; width: 322px;">
                                <asp:Label ID="relationName" runat="server"></asp:Label></td>
                            <td align="left" style="height: 23px">
                            </td>
                            <td align="left" style="height: 23px">
                            </td>
                            <td align="right" style="height: 23px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 44px; height: 23px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 23px;" class=""">
                                性别</td>
                            <td class="" style="width: 322px; height: 23px;">
                                <asp:Label ID="relationSex" runat="server"></asp:Label></td>
                            <td align="left" style="height: 23px">
                            </td>
                            <td align="left" style="height: 23px">
                            </td>
                            <td align="right" style="height: 23px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 44px; height: 20px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 20px;" class="">
                                地址</td>
                            <td class="" style="width: 322px; height: 20px;">
                                <asp:Label ID="relationAddress" runat="server"></asp:Label></td>
                            <td align="left" style="height: 20px">
                            </td>
                            <td align="left" style="height: 20px">
                            </td>
                            <td align="right" style="height: 20px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 44px; height: 24px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 24px;" class="">
                                电话
                            </td>
                            <td class="" style="height: 24px; width: 322px;">
                                <asp:Label ID="relationTelephone" runat="server"></asp:Label></td>
                            <td align="left" style="height: 24px">
                            </td>
                            <td align="left" style="height: 24px">
                            </td>
                            <td align="right" style="height: 24px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 44px; height: 20px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 20px;" class="">
                                传真</td>
                            <td class="" style="height: 20px; width: 322px;">
                                <asp:Label ID="relationFax" runat="server"></asp:Label></td>
                            <td align="left" style="height: 20px">
                            </td>
                            <td align="left" style="height: 20px">
                            </td>
                            <td align="right" style="height: 20px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 44px; height: 10px;">
                                &nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 10px;" class="">
                                邮件</td>
                            <td class="" style="width: 322px; height: 10px;">
                                <asp:Label ID="relationEmail" runat="server"></asp:Label></td>
                            <td align="left" style="height: 10px">
                            </td>
                            <td align="left" style="height: 10px">
                            </td>
                            <td align="right" style="height: 10px">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        
        <br />
        <table style="width: 80%">
            <tr>
                 <td style="width:44px; height: 22px;"  >
                </td>
                <td  class="list_data_bg_left" valign="bottom" style="height: 22px" >
                   <span  id="depositSpan" runat="server"> <asp:CheckBox ID="depositFlg" runat="server" Text=" " />预付保证金<asp:Label ID="deposit" runat="server"></asp:Label> 元, 并于<asp:Label ID="depositDate" runat="server"></asp:Label>之前补交合同余款，逾期合将失效。</span>
                </td>
                </tr>
                 <tr>
                 <td style="width: 44px"  >
                </td>
                <td  style="height:5px" >
                   
                </td>
                </tr>

                 <tr>
                 <td style="width: 44px"   >
                </td>
                <td  align="center" valign="bottom" style="height: 24px" >
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:Button ID="save" runat="server" Text="登 记" CssClass="button" Width="102px" OnClick="save_Click"   OnClientClick="return window.confirm('是否要建立合同？');"/>
                    &nbsp;
                    <asp:Button ID="del" runat="server" Text="删 除" CssClass="button" Width="99px" OnClick="del_Click" OnClientClick="return window.confirm('是否要删除合同？');"/>&nbsp;
                 </td>
                </tr>
        </table>

        <br />
        <br />
        <table class="table_border_line">
            <tr>            
                <th align="left" colspan="8" style="text-align: left;">
                    <script language="javascript">
                                        (new TitleBar('SearchBar4', '销售过程跟踪：')).showBar();
                            </script>
                                </th>
            </tr>
        </table>
        <table class="table_border_line" id="stepLink"  runat="server" style="background:ffffff">
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td style="" class="">
                    <asp:LinkButton ID="lnkBtn0" runat="server" Enabled="True" OnCommand="lnkBtn_Command" CommandName="btn0">&nbsp;&nbsp;新建登记－〉</asp:LinkButton></td>
                <td style="" class="">
                    <asp:LinkButton ID="lnkBtn1" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn1">&nbsp;销售记录－〉</asp:LinkButton></td>
                <td style="display:none" class="">
                    <asp:LinkButton ID="lnkBtn2" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn2">&nbsp;体检－〉</asp:LinkButton></td>
                <td style="" class="">
                    <asp:LinkButton ID="lnkBtn3" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn3">&nbsp;提交审核－〉</asp:LinkButton></td>
                <td style="" class="">
                    <asp:LinkButton ID="lnkBtn4" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn4" ForeColor="Red" OnClientClick="javascript:return false;">&nbsp;签订合同－〉</asp:LinkButton></td>
                <td style="" class="">
                    <asp:LinkButton ID="lnkBtn5" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn5">&nbsp;财务收费－〉</asp:LinkButton></td>
                <td style="" class="">
                    <asp:LinkButton ID="lnkBtn6" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn6">&nbsp;移交资料</asp:LinkButton></td>
                    <td style="display:none" class="">
                    <asp:LinkButton ID="lnkBtn7" runat="server" Enabled="False" OnCommand="lnkBtn_Command" CommandName="btn7">&nbsp;完成</asp:LinkButton></td>
            </tr>
            <tr>
                <td style=""></td>
                <td style=""></td>
                <td style=""></td>
                <td style=""></td>
                <td style=""></td>
                <td style=""></td>
                <td style=""></td>
                <td style=""></td>
            </tr>
        </table>
                
        <asp:HiddenField ID="saleProcId" runat="server" />
        <asp:HiddenField ID="rentH" runat="server" />
        <asp:HiddenField ID="foregiftH" runat="server" />

    </div>
</asp:Content>
